Tag represents a mark that can be added to a node to mark that the node is of certain kind. More...
#include <kanzi/core.ui/graphics3d/tag.hpp>
Public Member Functions | |
Tag (const string &name) | |
Creates a tag. | |
Static Public Member Functions | |
static void | addTag (Node &node, const Tag &tag) |
Adds a tag to the node. | |
static Tag | createTransparentTag () |
Creates a transparent tag that is used in the default composer. | |
static bool | hasTag (const Node &node, const Tag &tag) |
Checks if a node has a tag. | |
static void | removeTag (Node &node, const Tag &tag) |
Removes a tag from the node. | |
Tag represents a mark that can be added to a node to mark that the node is of certain kind.
For example transparent nodes can be marked with a "Transparent" tag. The transparent nodes can then be rendered in a different way than other objects by using a tag filter that selects only nodes with the "Transparent" tag.
|
explicit |
Creates a tag.
name | The name of the tag. |
Creates a transparent tag that is used in the default composer.
Adds a tag to the node.
If the node already has the tag, does nothing.
node | The node that is tagged. |
tag | The added tag. |
Removes a tag from the node.
If the node doesn't have the tag, does nothing.
node | The node where the tag is removed. |
tag | The removed tag. |
Checks if a node has a tag.
node | The node that is checked. |
tag | The tag that is checked. |